package com.team.recruitment_management_system.service;

import com.team.recruitment_management_system.pojo.dto.company.AddCompanyDto;
import com.team.recruitment_management_system.pojo.dto.company.ChangeCompanyDto;
import com.team.recruitment_management_system.pojo.dto.company.CompanyPageQuery;
import com.team.recruitment_management_system.pojo.entity.Company;
import com.baomidou.mybatisplus.extension.service.IService;
import com.team.recruitment_management_system.pojo.vo.CompanyInfoVo;
import com.team.recruitment_management_system.pojo.vo.job.JobInfoVo;
import com.team.recruitment_management_system.util.result.PageResult;
import com.team.recruitment_management_system.util.result.Result;

import java.util.List;

/**
* @author 86147
* @description 针对表【company(公司表)】的数据库操作Service
* @createDate 2024-03-21 20:28:40
*/
public interface CompanyService extends IService<Company> {
    Result<Integer> addCompany(AddCompanyDto addCompanyDto);

    Result<Void> changeCompany(ChangeCompanyDto changeCompanyDto);

    Result<Void> deleteCompany(int companyId);

    Result<CompanyInfoVo> getCompanyInfoByID(int companyId);

    PageResult<CompanyInfoVo> getCompanyPage(CompanyPageQuery companyPageQuery);

    Result<List<CompanyInfoVo>> getHotCompany();
}
